package com.chihihx.launcher.ext

import com.chihihx.launcher.bean.HomeInfoDto
import com.google.gson.Gson
import com.shudong.lib_base.ext.appContext
import java.io.InputStreamReader

fun getHomeJsonDto(): HomeInfoDto = run {
    val dto = Gson().fromJson(
        InputStreamReader(
            appContext.assets.open("home.json")
        ),
        HomeInfoDto::class.java
    )
    dto
}